<template>
  <div>
    我是父亲组件<SonPar :title="myTitle" @newTitle="handleTitle"></SonPar>
  </div>
</template>

<script>
import SonPar from './components/SonPar.vue'
export default {
  components: { SonPar },
  data(){
    return {
      myTitle:'我是父亲传过来的标题'
    }
  },
  methods:{
    handleTitle(newValue){
      this.myTitle = newValue
    }
  }

}
</script>

<style>

</style>